package com.springboot.service.impl;

import com.springboot.mapper.PatientInfoFormMapper;
import com.springboot.model.PatientInfoForm;
import com.springboot.service.AssistantSeePatientDetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Service
public class AssistantSeePatientDetailServiceImpl implements AssistantSeePatientDetailService {
    @Autowired
    private PatientInfoFormMapper patientInfoFormMapper;

    @Override
    public PatientInfoForm getPatientDetailById(Integer bootId) {
        PatientInfoForm patientInfoForm = new PatientInfoForm();
        try {
            patientInfoForm = patientInfoFormMapper.selectByPrimaryKey(bootId);
        } catch (Exception e) {
            System.out.println("patientInfoFormMapper查找失败");
            e.printStackTrace();
        }
        return patientInfoForm;
    }
}
